import { Person } from '@/api/meetingSpace'
import { v4 as uuidv4 } from 'uuid'
export type IPerson = {
	id: string
	personName: string
	rollCallResults: number
	remark: string
}
export function transRollCallInfo(data: Person[]): IPerson[] {
	return data.map((item) => ({
		id: uuidv4(),
		personName: item.person_name ?? '',
		rollCallResults: item.roll_call_results,
		remark: item.remark ?? '',
	}))
}
